package com.mbc.hr.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="hr_fingerprintdevice")
@NamedQueries({
	@NamedQuery(name="FingerPrintDevice.findAll",query="SELECT fpd FROM FingerPrintDevice fpd"),
	@NamedQuery(name="FingerPrintDevice.findByName",query="SELECT fpd FROM FingerPrintDevice fpd WHERE fpd.deviceName = :deviceName"),
	@NamedQuery(name="FingerPrintDevice.delete",query="DElETE FROM FingerPrintDevice fpd WHERE fpd.deviceID = :deviceID"),
	@NamedQuery(name="FingerPrintDevice.findByIP",query="SELECT fpd FROM FingerPrintDevice fpd WHERE fpd.ipAddress = :ipAddress")
})
public class FingerPrintDevice implements Serializable {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long deviceID;
	private String deviceName;
	private byte communicationType;
	private String ipAddress;
	private int port;
	private int baudRate;
	private String comPort;
	private String location;
	
	public long getDeviceID() {
		return deviceID;
	}
	public void setDeviceID(long deviceID) {
		this.deviceID = deviceID;
	}
	public String getDeviceName() {
		return deviceName;
	}
	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	public byte getCommunicationType() {
		return communicationType;
	}
	public void setCommunicationType(byte communicationType) {
		this.communicationType = communicationType;
	}
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public int getBaudRate() {
		return baudRate;
	}
	public void setBaudRate(int baudRate) {
		this.baudRate = baudRate;
	}
	public String getComPort() {
		return comPort;
	}
	public void setComPort(String comPort) {
		this.comPort = comPort;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
}
